getPhysicsCircleCollider = () => {
    var prefabIndex = 0;
    for (var i = 0; i < global.UnityNode.length; i++) {
        var d = global.UnityNode[i];
        if (d.PhysicsCircleCollider.Add) {
            var nodeId = d.ID;
            prefabIndex++;
            global.curID++;
            global.finialInfo.push(PhysicsCircleCollider(nodeId,d.PhysicsCircleCollider));
        }
    }
}
PhysicsCircleCollider = (nodeId,data) => {
    var d = {
        "__type__": "cc.PhysicsCircleCollider",
        "_name": "",
        "_objFlags": 0,
        "node": {
          "__id__": nodeId
        },
        "_enabled": true,
        "tag": data.Tag,
        "_density": data.Density,
        "_sensor": data.Sensor,
        "_friction": data.Friction,
        "_restitution": data.Restitution,
        "body": null,
        "_offset": {
          "__type__": "cc.Vec2",
          "x": data.OffSet.x,
          "y": data.OffSet.y
        },
        "_radius": data.Radius,
        "_id": ""
    }
    if (global.isShowId) d["ID"] = global.curID;
    return d;
}
module.exports = {
    getPhysicsCircleCollider,
};